Repository navigation
test: the CLI scoring test makes its package a repository of its own - #126
Conversation
punt release runs make check with the shell's TMPDIR, which the workspace .envrc puts inside the checkout. separate_project then makes pytest's scratch root a repository, and the gate names the broken file from that root, so test_cli_exit_code_and_table failed the 0.9.0 release pre-flight: Before (TMPDIR inside the checkout): AssertionError: assert 'ERROR: pkg/broken.py could not be parsed' in '... ERROR: test_cli_exit_code_and_table0/pkg/broken.py could not be parsed ...' After: tests/oo/test_oo_scoring_domain.py passes (7 passed).
PR Summary by Qodotest: make CLI scoring fixture its own git repository
AI Description
Merge Risk
|
Qodo FixerNo findings are available for this PR yet. Findings appear here once Qodo has reviewed the PR. |
|
verified: b7d0125
CI is green on b7d0125 (Python 3.13 and 3.14, plus |
What changed
tests/oo/test_oo_scoring_domain.py::TestCharacterization::test_cli_exit_code_and_tablenow runsgit initin itstmp_path, so the fixture package is a project of its own. This is a test-only change.Why
punt release 0.9.0stopped in pre-flight. It runsmake checkwith the shell'sTMPDIR, which the workspace.envrcsets inside the checkout. WithTMPDIRthere,separate_project(tests/conftest.py) makes pytest's scratch root a repository, and the gate names files from the repository root. The test asserted the exact textERROR: pkg/broken.py, so it failed:The gate's behaviour was correct: exit 2, with the file named. CI never saw this, because its
TMPDIRis outside any repository.How it was proven
TMPDIRinside the checkout (the output above).tests/oo/test_oo_scoring_domain.pypasses, 7 tests.make checkis running under the same condition. Its result will be posted below.No source change, so no demo applies: every commit touches only
tests/.